/**
 * 
 */
package com.luck.org.entity;

import java.io.Serializable;
import java.util.Date;

import com.luck.pf.util.DateUtil;
import com.luck.pf.util.FormateUtil;

/**
 * @hibernate.class table="SYS_LOG" lazy="false"
 * 说明: Copyright: Copyright (c) 2010
 * @author zhangwr 2011-8-9 上午10:49:40
 * @version 1.0
 */
public class SysLog implements Serializable {
	private static final long serialVersionUID = 3035258047289262324L;
	
	Long id;
	String logType;//日志类型，1：登陆日志，2:系统日志，3,业务日志
	String remark;
	String operUser;
	Date operTime;

	/**
     * @hibernate.id generator-class = "sequence" 
     * @hibernate.generator-param name="sequence" value="seq_sys_log"
     * @hibernate.column sql-type="NUMBER(22,0)" name="id"
     * @return
     */
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	/**
     * @hibernate.property length="2" column="log_type"
     */
	public String getLogType() {
		return logType;
	}
	public void setLogType(String logType) {
		this.logType = logType;
	}
	/**
     * @hibernate.property length="500" column="remark"
     */
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	/**
     * @hibernate.property length="30" column="oper_user"
     */
	public String getOperUser() {
		return operUser;
	}
	public void setOperUser(String operUser) {
		this.operUser = operUser;
	}
	/**
     * @hibernate.property column="oper_time"
     */
	public Date getOperTime() {
		return operTime;
	}
	public void setOperTime(Date operTime) {
		this.operTime = operTime;
	}

	public String getLogTypeStr() {
		return FormateUtil.getInstance().getNameByCode("p_log_type", this.logType);
	}
	public String getOperTimeStr() {
		return DateUtil.dateToString(this.operTime,DateUtil.patternE);
	}
	
}
